package org.example.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhaowenting
 * @since 2024-03-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("cycle_cord")
public class CycleCord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 作物名称
     */
    private String cropName;

    /**
     * 温度
     */
    private String temperatures;

    /**
     * 水分
     */
    private String cropHydration;

    /**
     * 备注
     */
    private String remark;

    /**
     * 生长情况
     */
    private String growthCondition;

    /**
     * 光照情况
     */
    private String lightCondition;

    /**
     * 生长图片
     */
    private String img;

    /**
     * 外键 作物id
     */
    private Integer cropId;

    /**
     * 登记时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    /**
     * 作物编号
     */
    private String cropNumbering;


}
